{@ Context::addJsFile("./common/js/jquery.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/js_app.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/x.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/common.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/xml_handler.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/xml_js_filter.js", true, '', -100000) }
<!--%import("js/missue.js")-->
<!--#include("_header.html")-->
<div class="bd">
<form action="./" method="POST" onsubmit="return procFilter(this, insert)">
		<input type="hidden" name="vid" value="{$vid}" />
		<input type="hidden" name="mid" value="{$mid}" />
		<input type="hidden" name="document_srl" value="{$document_srl}" />
		<ul class="sn">
			<li>
				<label for="nTitle" class="db fb">{$lang->title}</label>
				<input name="title" type="text" id="nTitle" class="itx" />
			</li>
			<!--@if(count($extra_keys))-->
			<!--@foreach($extra_keys as $key=> $val)-->
			<li class="exvar">
				<label for="ex_{$val->name}" class="db fb">{$val->name} <!--@if($val->is_required=="Y")-->*<!--@end--></label>
				{$val->getFormHTML()}
			</li>
			<!--@endforeach-->
			<!--@end-->

			<!--@if(!$oIssue->isExists())-->
			<!--@if($grant->commiter)-->
			<!--@if(count($project->milestones) > 0)-->
			<li>
				<label for="inputMilestone" class="db fb">{$lang->milestone}</label>
						<select name="milestone_srl" id="inputMilestone">
						<option value="0">{$lang->milestone}</option> 
						<!--@foreach($project->milestones as $val)-->
						<!--@if($val->is_completed != 'Y')-->
						<option value="{$val->milestone_srl}" <!--@if($val->is_default == 'Y')-->selected="selected"<!--@end-->>{$val->title}</option>
						<!--@endif-->
						<!--@end-->
						</select>
			</li>
			<!--@endif-->
			<!--@if(count($project->priorities) > 0)-->
			<li>
				<label for="inputPriority" class="db fb">{$lang->priority}</label>
						<select name="priority_srl" id="inputPriority">
						<option value="">{$lang->priority}</option> 
						<!--@foreach($project->priorities as $key => $val)-->
							<option value="{$val->priority_srl}" <!--@if($val->is_default=='Y')-->selected="selected"<!--@end-->>{$val->title}</option> 
							<!--@end-->
						</select>
			</li>
			<!--@endif-->
			<!--@if(count($project->packages))-->
			<li>
				<label for="inputPackage" class="db fb">{$lang->occured_version}</label>
					<select name="package_srl" id="inputPackage" onchange="showRelease(this,this.form);">
						<option value="">{$lang->package}</option> 
						<!--@foreach($project->packages as $key => $val)-->
						<option value="{$val->package_srl}" <!--@if($val->package_srl==$oIssue->get('package_srl'))-->selected="selected"<!--@end-->>{$val->title}</option> 
						<!--@end-->
					</select>
					<select name="release_srl">
						<option value="">{$lang->release}</option> 
						<!--@foreach($project->packages as $key => $val)-->
						
						<!--@if($val->package_srl==$oIssue->get('package_srl'))-->
							<!--@foreach($project->releases as $k => $v)-->
							<!--@if($val->package_srl == $v->package_srl)-->
							<option value="{$v->release_srl}" <!--@if($v->release_srl==$oIssue->get('occured_version_srl'))-->selected="selected"<!--@end-->>{$v->title}</option> 
							<!--@end-->
							<!--@end-->

						<!--@end-->

						<!--@end-->
					</select>
			</li>
			<!--@endif-->
			<!--@endif-->
			<!--@if(count($project->types) > 0)-->
			<li>
				<label for="inputType" class="db fb">{$lang->type}</label>
				<select name="type_srl" id="inputType">
					<option value="">{$lang->type}</option> 
					<!--@foreach($project->types as $key => $val)-->
					<option value="{$val->type_srl}" <!--@if($val->is_default=='Y')-->selected="selected"<!--@end-->>{$val->title}</option> 
					<!--@end-->
				</select>
			</li>
			<!--@endif-->
			<!--@if(count($project->components) > 0)-->
			<li>
				<label for="inputComponent" class="db fb">{$lang->component}</label>
				<select name="component_srl" id="inputComponent">
				<option value="">{$lang->component}</option> 
					<!--@foreach($project->components as $key => $val)-->
					<option value="{$val->component_srl}" <!--@if($val->is_default=='Y')-->selected="selected"<!--@end-->>{$val->title}</option> 
					<!--@end-->
				</select>
			</li>
			<!--@endif-->
			<!--@if($grant->commiter && count($commiters)>0)-->
			<li>
				<label for="inputAssignee" class="db fb">{$lang->assignee}</label>
				<select name="assignee_srl" id="inputAssignee" >
					<option value="" selected="selected">{$lang->assignee}</option>
					<!--@foreach($commiters as $key => $val)-->
					<option value="{$val->member_srl}">{$val->nick_name} ({$val->user_id})</option> 
					<!--@end-->
				</select>
			</li>
			<!--@endif-->

			<!--@endif-->
			<li>
				<label for="nText" class="db fb">{$lang->content}</label>
				<textarea name="content" cols="20" rows="8" id="nText" class="itxx"></textarea>
			</li>
			<!--@if(!$is_logged)-->
			<li>
				<label for="uName" class="db fb">{$lang->writer}</label>
				<input name="nick_name" type="text" id="uName" class="itx" />
			</li>
			<li>
				<label for="uMail" class="db fb">{$lang->email_address}</label>
				<input name="email_address" type="text" id="uMail" class="itx" />
			</li>
			<li>
				<label for="uPw" class="db fb">{$lang->password}</label>
				<input name="password" type="password" id="uPw" class="itx" />
			</li>
			<li>
				<label for="uSite" class="db fb">{$lang->homepage}</label>
				<input name="homepage" type="text" id="uSite" class="itx" value="http://" />
			</li>
			<!--@endif-->
			<li>
				<input type="checkbox" name="allow_comment" value="Y" <!--@if($oIssue->allowComment())-->checked="checked"<!--@end--> id="reAllow" />
				<label for="reAllow">{$lang->allow_comment}</label>
				<input type="checkbox" name="allow_trackback" value="Y" <!--@if($oIssue->allowTrackback())-->checked="checked"<!--@end--> id="trAllow" />
				<label for="trAllow">{$lang->allow_trackback}</label>
				<!--@if($module_info->secret=="Y")-->
				<input type="checkbox" name="is_secret" value="Y" <!--@if($oIssue->isSecret())-->checked="checked"<!--@end--> id="secret" />
				<label for="secret">{$lang->secret}</label>
				<!--@end-->
			</li>
		</ul>
		<div class="cm">
			<button type="submit" class="bn">{$lang->cmd_registration}</button>
		</div>
</form>
</div>

<!--#include("_footer.html")-->
